From: Paul Eggert Date: Mon, 14 Mar 2011 23:30:06 +0000 (-0700) Subject: * sysdep.c (sys_subshell): Mark local as volatile if checking for lint, X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~844^2~2143^2~99 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=edced198e35ccd2ab81797988705597da3fc3e19;p=emacs.git * sysdep.c (sys_subshell): Mark local as volatile if checking for lint, to suppress a gcc -Wclobbered warning that does not seem to be right. --- diff --git a/src/ChangeLog b/src/ChangeLog index 266ff2f58a6..efc238cc078 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -2,6 +2,8 @@ * sysdep.c (system_process_attributes): Rename vars to avoid shadowing. Fix pointer signedness issue. + (sys_subshell): Mark local as volatile if checking for lint, + to suppress a gcc -Wclobbered warning that does not seem to be right. * process.c (serial_open, serial_configure): Move decls from here ... * systty.h: ... to here, so that they can be checked. diff --git a/src/sysdep.c b/src/sysdep.c index e19f9ca829e..1c49b2a3387 100644 --- a/src/sysdep.c +++ b/src/sysdep.c @@ -488,7 +488,7 @@ sys_subshell (void) int pid; struct save_signal saved_handlers[5]; Lisp_Object dir; - unsigned char *str = 0; + unsigned char * IF_LINT (volatile) str = 0; int len; saved_handlers[0].code = SIGINT;